<html>
<body>

This package contains interfaces and classes for creating XML documents programatically.
The created objects then can be easily rendered to a character stream.
<p>
{@link pikes.xml.XMLTag} class helps to create tags, examples:

<p>
Example1:<br>
<code>
XMLTag tag = new XMLTag("name");<br>
Writer writer = new OutputStreamWriter(System.out);<br>
tag.print(writer);<br>
writer.flush();<br>
</code>
will print <br><code>&lt;name/&gt;</code> <br>to the standard output.

<br>
<p>
Example2:<br>
<code>
XMLTag tag = new XMLTag("name");<br>
tag.addAttribute("key","value");<br>
Writer writer = new OutputStreamWriter(System.out);<br>
tag.print(writer);<br>
writer.flush();<br>
</code>
will print <br><code>&lt;name key=&quot;value&quot;/&gt;</code> <br>to the standard output.

<br>
<p>
Example3:<br>
<code>
XMLTag tag = new XMLTag("name");<br>
tag.addCharData("subText");<br>
Writer writer = new OutputStreamWriter(System.out);<br>
tag.print(writer);<br>
writer.flush();<br>
</code>
will print <br><code>&lt;name&gt;subText&lt;/name&gt;</code> <br>to the standard output.

<br>
<p>
Example4:<br>
<code>
XMLTag tag = new XMLTag("name");<br>
tag.addTag(new XMLTag("subChild"));<br>
Writer writer = new OutputStreamWriter(System.out);<br>
tag.print(writer);<br>
writer.flush();<br>
</code>
will print <br><code>&lt;name&gt;&lt;subChild/&gt;&lt;/name&gt;</code> <br>to the standard output.

<p>
{@link pikes.xml.XMLDocument} class helps to create XML documents, examples:

<p>
Example1:<br>
<code>
XMLDocument doc = new XMLDocument(new XMLTag("name"));<br>
Writer writer = new OutputStreamWriter(System.out);<br>
doc.print(writer);<br>
writer.flush();<br>
</code>
will print <br><code>&lt;?xml version=&quot;1.0&quot;?&gt;&lt;name/&gt;</code> <br>to the standard output.


</body>
</html>
